import { http } from "../http"

function doLogin(data){
	return http({
		url: '/api/leju/front/user/doLogin',
		method: 'POST',
		data
	})
}
function register(data){
 	return http({
 		url: '/api/leju/front/user/register',
 		method: 'POST',
		data
 	})
 }
 
 function cartList(data){
  	return http({
  		url: '/api/leju/front/cart/cartList',
  		data
  	})
  }
  function save(data){
   	return http({
   		url: '/api/leju/front/address/save',
   		method: 'POST',
  		data
   	})
   }
   function list(data){
    	return http({
    		url: '/api/leju/front/address/list',
    		data
    	})
    }
	function update(data){
	 	return http({
	 		url: '/api/leju/front/address/update',
			method:'POST',
	 		data
	 	})
	 }
	 function doLogout(data){
	  	return http({
	  		url: '/api/leju/front/user/doLogout',
	  		data
	  	})
	  }
	  function detail(data){
	   	return http({
	   		url: '/api/leju/front/address/detail',
	   		data
	   	})
	   }
	   function pay(data){
	    	return http({
	    		url: '/api/leju/front/order/payConfirm',
	   		method:'POST',
	    		data
	    	})
	    }
		function add(data){
		 	return http({
		 		url: '/api/leju/front/order/addOrderBatch',
				method:'POST',
		 		data
		 	})
		 }
		 function list1(data){
		  	return http({
		  		url: '/api/leju/front/order/list',
		  		data
		  	})
		  }

 export{
	 doLogin,register,cartList,save,list,update,doLogout,detail,pay,add,list1
 }